#!/bin/bash
argument1=1
argument2=1
while getopts "f:t:" arg #选项后面的冒号表示该选项需要参数
do
        case $arg in
             f)
                echo "f's arg:$OPTARG" #参数存在$OPTARG中
                argument1=$OPTARG
                ;;
             t)
                echo "t arg:$OPTARG"
                argument2=$OPTARG
                ;;
             ?)  #当有不认识的选项的时候arg为?
            echo "unkonw argument"
        exit 1
        ;;
        esac
done
for (( a = 1; a <= argument2; a++ ))
 do
 for (( b = 1; b <= argument1; b++ ))
 do
fs_cli -x "bgapi originate {origination_caller_id_name=1234}loopback/200 111 XML default"
 done
 sleep 1s
 done
#for variable  in $(seq 1 $argument1)
# do
#     fs_cli -x "bgapi originate loopback/200 auto_test XML default"
# done


